package com.goods.controller.business;


import com.goods.common.model.business.Consumer;
import com.goods.common.response.ResponseBean;
import com.goods.service.businessService;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/consumer")
public class consumerController {
    @Autowired
    private businessService businessService;


    ///consumer/add
    @ApiParam("物资去处添加")
    @PostMapping("/add")
    public ResponseBean consumerAdd(@RequestBody Consumer consumer){
        businessService.consumerAdd(consumer);
        return  ResponseBean.success();
    }
}
